#ifndef INVOKEOBJECT_H
#define INVOKEOBJECT_H

#include <QObject>
#include <QString>
#include <QVariant>

class InvokeObject : public QObject
{
    Q_OBJECT
public:
    explicit InvokeObject(QObject *parent = 0);
    void init(QObject *rootObj);

Q_SIGNALS:

public Q_SLOTS:
    Q_INVOKABLE void loadText(QString text);
    Q_INVOKABLE QString getCacheText();
    Q_INVOKABLE void openDialog();

private:
    QObject *m_rootObj;
    QString cacheText;
};

#endif // INVOKEOBJECT_H
